]> dgit.raspbian.org Git - gnome-shell.git/commit
iconGrid: Downscale icon size when comparing to defaults
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Fri, 3 Apr 2020 18:28:57 +0000 (15:28 -0300)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Fri, 3 Apr 2020 19:04:40 +0000 (16:04 -0300)
commit402fd8ec292ee29dead3190ceef9786aa9fecae9
treeb3ef09be33db38bbafb925f663a269cc2ea51102
parentfbe2e30f389a10b5b155ab7b2179d9fd718e762b
iconGrid: Downscale icon size when comparing to defaults

The return value of st_theme_node_lookup_length() is scaled according
to the scale factor. IconGrid.ICON_SIZE is not. However, when BaseIcon
tries to fetch the CSS value for "icon-size" (which returns a scaled
value), it uses it as-is, mixing the two coordinate systems.

Use a single coordinate system (unscaled sizes) in IconGrid.BaseIcon.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1175
js/ui/iconGrid.js